<?php echo $header; ?>
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?><img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>
<?php } ?>


<div class="sixteen columns">
<script type="text/javascript"><!--
	//window.onload = boss_header_move_search;
	//addLoadEvent(boss_header_move_search);
	$(document).ready(function() {
		boss_header_move_mobile();
	});
	$(window).resize(function() {
		boss_header_move_mobile();
	});
	
	function boss_header_move_mobile()	{
		if(getWidthBrowser() < 767){
			if ($("#logo").html()) {
				$("#m-logo").html($("#logo").html());
				$("#logo").html("");
			}
			if ($("#welcome").html()) {
				$("#m-welcome").html($("#welcome").html());
				$("#welcome").html("");
			}
			if ($("#search-form").html()) {
				$("#m-search").html($("#search-form").html());
				$("#search-form").html("");
				$("#search").css("display", "none");
				$('.button-search').bind('click', function() {
					url = $('base').attr('href') + 'index.php?route=product/search';
							 
					var filter_name = $('input[name=\'filter_name\']').attr('value');
					
					if (filter_name) {
						url += '&filter_name=' + encodeURIComponent(filter_name);
					}
					
					location = url;
				});
				$('#header input[name=\'filter_name\']').bind('keydown', function(e) {
					if (e.keyCode == 13) {
						url = $('base').attr('href') + 'index.php?route=product/search';
						 
						var filter_name = $('input[name=\'filter_name\']').attr('value');
						
						if (filter_name) {
							url += '&filter_name=' + encodeURIComponent(filter_name);
						}
						
						location = url;
					}
				});
			}
		} else {
			if ($("#m-logo").html()) {
				$("#logo").html($("#m-logo").html());
				$("#m-logo").html("");
			}
			if ($("#m-welcome").html()) {
				$("#welcome").html($("#m-welcome").html());
				$("#m-welcome").html("");
			}
			if ($("#m-search").html()) {
				$("#search-form").html($("#m-search").html());
				$("#m-search").html("");
				$("#search").css("display", "block");
			}
			
		}
	}
//--></script>


<div class="frame_category">

<div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
<?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  
  <h1><?php echo $heading_title; ?></h1>
  <?php if ($products) { ?>
  <div class="wishlist-info">
    <table>
      <thead>
        <tr>
          <td class="image"><?php echo $column_image; ?></td>
          <td class="name"><?php echo $column_name; ?></td>
          <td class="model"><?php echo $column_model; ?></td>
          <td class="stock"><?php echo $column_stock; ?></td>
          <td class="price"><?php echo $column_price; ?></td>
          <td class="action"><?php echo $column_action; ?></td>
        </tr>
      </thead>
      <?php foreach ($products as $product) { ?>
      <tbody id="wishlist-row<?php echo $product['product_id']; ?>">
        <tr>
          <td class="image"><?php if ($product['thumb']) { ?>
            <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
            <?php } ?></td>
          <td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></td>
          <td class="model"><?php echo $product['model']; ?></td>
          <td class="stock"><?php echo $product['stock']; ?></td>
          <td class="price"><?php if ($product['price']) { ?>
            <div class="price">
              <?php if (!$product['special']) { ?>
              <?php echo $product['price']; ?>
              <?php } else { ?>
              <s><?php echo $product['price']; ?></s> <b><?php echo $product['special']; ?></b>
              <?php } ?>
            </div>
            <?php } ?></td>
          <td class="action"><img src="catalog/view/theme/default/image/cart-add.png" alt="<?php echo $button_cart; ?>" title="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" />&nbsp;&nbsp;<a href="<?php echo $product['remove']; ?>"><img src="catalog/view/theme/default/image/remove.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" /></a></td>
        </tr>
      </tbody>
      <?php } ?>
    </table>
  </div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
  </div>
  <?php } else { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
  </div>
  <?php } ?>
  
  </div></div>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>